<?php
//$client = new Swoole\Client(SWOOLE_SOCK_TCP);
////if(!$client->connect('127.0.0.1',9501)){
////    exit("链接失败. Error: {$client->errCode}\n");
////
////
////
////}
////$client->send("hello\n");
////echo $client->recv();
////$client->close();
 $client = new Swoole\Client(SWOOLE_SOCK_UDP);

$client->sendTo("127.0.0.1",9502,'dsdsdsdsd');
var_dump($client->recv());
